//
//  SEGWindmillConst.h
//  RefreshDemo
//
//  Created by Clavis on 2019/1/2.
//  Copyright © 2019 Clavis. All rights reserved.
//

#import <UIKit/UIKit.h>

// 常量
UIKIT_EXTERN const CGFloat SEGRefreshLabelLeftInset;
UIKIT_EXTERN const CGFloat SEGRefreshHeaderHeight;
UIKIT_EXTERN const CGFloat SEGRefreshFooterHeight;
UIKIT_EXTERN const CGFloat SEGRefreshFastAnimationDuration;
UIKIT_EXTERN const CGFloat SEGRefreshSlowAnimationDuration;
UIKIT_EXTERN const CGFloat SEGRefreshMinAnimationDuration;

UIKIT_EXTERN NSString *const SEGRefreshKeyPathContentOffset;
UIKIT_EXTERN NSString *const SEGRefreshKeyPathContentSize;
UIKIT_EXTERN NSString *const SEGRefreshKeyPathContentInset;
UIKIT_EXTERN NSString *const SEGRefreshKeyPathPanState;

// 状态检查
#define SEGRefreshCheckState \
SEGRefreshState oldState = self.state; \
if (state == oldState) return; \
[super setState:state];
